﻿<UserControl x:Class="EzDesk.DesktopClient.View.SelfInfoView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="45" d:DesignWidth="303">
    <Grid>
        <Grid Margin="5">
            <Grid Width="64" Margin="-60,15,0,-40" HorizontalAlignment="Left" VerticalAlignment="Top" Height="64">
                <Grid.Effect>
                    <DropShadowEffect Color="#FF7CBAFF" ShadowDepth="2" BlurRadius="8"/>
                </Grid.Effect>
                <Rectangle Fill="#FF7BB9FF" Stroke="#FF999999" RadiusX="5" RadiusY="5"/>
                <Rectangle Fill="#FFD5D5D5" RadiusY="4" RadiusX="4" HorizontalAlignment="Center" VerticalAlignment="Center" Width="60" Height="60">
                    <Rectangle.Effect>
                        <DropShadowEffect Opacity="0.3" BlurRadius="2" ShadowDepth="2" Direction="120"/>
                    </Rectangle.Effect>
                </Rectangle>
                <Image Source="{Binding UserHeadIcon,Converter={StaticResource ImageCacherConverter}}" Width="60" Height="60"/>
            </Grid>

            <StackPanel Orientation="Vertical" TextBlock.FontSize="14" VerticalAlignment="Top" Margin="20,15,0,0">
                <!--<Image  Source="{DynamicResource UserStatus}" Width="16"/>-->
                <TextBlock>
                    <TextBlock Text="{Binding UserProfileModel.Name}"  FontWeight="Bold"/>
                    <TextBlock Foreground="{StaticResource FontGray}" Margin="5,0,0,0">[ <Run Text="{Binding DeptModel.DeptName,TargetNullValue=软件开发部}"></Run> ]</TextBlock>
                </TextBlock>
                <!--<ComboBox ItemsSource="{Binding TodoFeeds}" SelectedIndex="0" Margin="0,0,50,0">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <ContentControl  Content="{Binding ContentTitle,Converter={StaticResource XamlConverter}}"></ContentControl>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>-->
            </StackPanel>

            <Image  Source="{StaticResource Logo}" HorizontalAlignment="Right" Height="58" VerticalAlignment="Top"/>
        </Grid>
    </Grid>
</UserControl>
